#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s, t;
	while(cin>>t)
		s += t;
	int w, l;
	w = l = 0;
	for(auto i : s)
	{
		if((w >= 15 && w-l >= 2) || (l >= 15 && l-w >= 2))
		{
			cout<<w<<":"<<l<<endl;
			w = l = 0;
		}
		if(i == 'W')
			w++;
		if(i == 'L')
			l++;
		if(i == 'E')
		{
			if(!(!w && !l))
				cout<<w<<":"<<l<<endl;
			break;
		}
	}
	return 0;
}

